import datetime

# from google.appengine.ext.db import djangoforms
from django import forms

class SquadronForm(forms.Form):
  number = forms.CharField()

# TODO: Make a CadetForm subclass called NewCadetForm that checks a cadet doesn't exist before you make it
class CadetForm(forms.Form):
  last_name = forms.CharField()
  first_name = forms.CharField()
  # joined = forms.DateField(initial=datetime.date.today)

# class NewRegisterForm(forms.Form):
#   """Asks the user for the date that a new register is to be created on"""
#   date = forms.DateField(initial=datetime.date.today, label="Register's date")
#   
#   def clean_date(self):
#     """Verifies that the given date does not already have a register for it"""
#     date = self.cleaned_data['date']
#     register = Register.for_date(date)
#     if register:
#       raise forms.ValidationError('A register for this date already exists <a href="%s">here</a>' % register.get_absolute_url())
#       # date = None
#     return date